@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.no-dialog-padding {
  .el-dialog__body {
    padding: 0px;
  }
}

.no-dialog-header-padding {
  .el-dialog__header {
    padding: 0px;
  }
}

.preview-dialog {
  .el-dialog__header {
    background-color: none;
  }
  .el-dialog {
    background-color: #ffffff00;
    box-shadow: none;
  }

  .el-dialog__headerbtn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #fff;
    background-color: #606266;
    border-radius: 50%;
  }

  .el-dialog__headerbtn .el-dialog__close {
    color: #fff;
  }
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-input__inner {
  height: 32px;
}

input:-webkit-autofill {
  background: transparent;
  transition: background-color 50000s ease-in-out 0s; //背景色透明  生效时长  过渡效果  启用时延迟的时间
}

/* google、safari */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
}
/* 火狐 */
input[type="number"] {
  -moz-appearance: textfield;
}

.cancel_btn {
  min-width: 65px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
}

.el-button--primary {
  background-color: #0052d9 !important;
}

.w-100 {
  width: 100% !important;
}

.w-80 {
  width: 80px !important;
  margin: 0 5px;
}

.w-120 {
  width: 120px !important;
}

.w-160 {
  width: 160px !important;
}

.w-300 {
  width: 300px !important;
}

.w-400 {
  width: 400px !important;
}

.hover_style {
  cursor: pointer;
}

.hover_style2 {
  cursor: pointer;
  color: #0079fe;
  &:hover {
    text-decoration: underline;
  }
}
.text-left {
  text-align: left;

  .el-input__inner {
    text-align: left;
  }
}

.text-center {
  text-align: center;
}

.header_search_nav.search_form {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  .el-form-item {
    margin: 10px 0px !important;
  }
}

.header_search_nav {
  background: #ffffff;
  border-radius: 4px;
  position: relative;
  margin: 24px;
  .ipt_left {
    padding-left: 24px;
  }
  .btn_right {
    position: absolute;
    bottom: 12px;
    right: 24px;
    button {
      cursor: pointer;
    }
    .btn1 {
      width: 65px;
      height: 32px;
      background: #0052d9;
      background-color: #0052d9;
      color: #fff;
      border-radius: 5px;
      text-align: center;
      font-size: 14px;
      border: 1px solid #0052d9;
      height: 35px;
    }
    .btn2 {
      width: 65px;
      height: 32px;
      background: #ffffff;
      color: #787878;
      border-radius: 5px;
      text-align: center;
      font-size: 14px;
      border: 1px solid #d9d9d9;
      height: 35px;
      margin-left: 8px;
    }
  }
}

.table_card {
  background: #ffffff;
  border-radius: 4px;
  margin: 24px;
  background-color: #fff;
  padding-top: 24px;

  .table_card_top {
    background-color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    line-height: 32px;
    padding-bottom: 12px;
    // &.form_style {
    //   border: solid 1px #e9e9e9;
    // }

    .solid_left {
      width: 2px;
      height: 32px;
      background: #0052d9;
      border-radius: 2px;
      display: inline-block;
      margin-left: 24px;
      margin-right: 10px;
    }
    .table_card_title {
      font-size: 18px;
      font-weight: 400;
      color: rgba(0, 0, 0, 0.65);
    }
    .op_right {
      padding-right: 24px;
      button {
        cursor: pointer;
      }
      position: absolute;
      right: 24px;
      .primary_button {
        width: 100px;
        height: 32px;
        background: #0052d9;
        color: #fff;
        border-radius: 5px;
        text-align: center;
        font-size: 14px;
        border: 1px solid #0052d9;
        margin-left: 10px;
      }
      .default_button {
        width: 88px;
        height: 32px;
        background: #ffffff;
        border: 1px solid #0052d9;
        color: #0052d9;
        text-align: center;
        font-size: 14px;
        border-radius: 5px;
        margin-left: 10px;
      }
    }
  }

  .table_list {
    margin: 0px 24px;
  }

  .client_Form {
    padding: 24px;
  }
}

.none-border {
  .el-input__inner {
    border: none;
  }
}

.page_tab_top {
  width: 100%;
  height: 48px;
  background: #ffffff;
  display: flex;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 48px;
  padding-left: 16px;
  .tab_list_item {
    margin-right: 32px;
    cursor: pointer;
  }

  .tab_active {
    color: #0052d9;
    border-bottom: 1px solid #0052d9;
  }
}

.radiobtns {
  .el-radio-button__orig-radio:checked + .el-radio-button__inner {
    background-color: #fff;
    color: #0052d9;
  }

  .el-radio-button.error .el-radio-button__inner {
    color: #ff4f50;
  }

  .el-radio-button.warn .el-radio-button__inner {
    color: #ff9d39;
  }

  .el-radio-button.gray .el-radio-button__inner {
    color: #63666a;
  }
  .el-radio-button.blue .el-radio-button__inner {
    color: #1890ff;
  }
}

.el-radio.none-lable .el-radio__label {
  display: none !important;
}
